import request from '@/plugin/axios'

export function queryDictDetails (data) {
  return request({
    url: '/v1/dictDetail',
    method: 'post',
    data
  })
}

export function addDictDetail (dictId, data) {
  return request({
    url: `/v1/dictDetail/addByDictId/${dictId}`,
    method: 'post',
    data
  })
}

export function updateDictDetail (id, data) {
  return request({
    url: `/v1/dictDetail/updateById/${id}`,
    method: 'post',
    data
  })
}

export function removeDictDetail (data) {
  return request({
    url: `/v1/dictDetail/deleteByIds`,
    method: 'post',
    data
  })
}
